<?php

namespace App\Http\Controllers\Web;

use App\Line;
use App\Utils\CommonCRUD;
use Illuminate\Http\Request;


class LineController extends Controller
{
    use CommonCRUD;

    protected $_viewGroup = 'web';
    protected $_view = 'line';
    // protected $_orderField = 'no';
    // protected $_order = 'asc';

    protected $_model;
    protected $_where=[];

    public function __construct(Line $model,Request $request)
    {

        $this->_model = $model;
        $this->_where = function($qy) use($request) {
//            if($request->input('key')!='') {
//                $qy->where('name','like',$request->input('key').'%');
//                $qy->orWhere('phone','like',$request->input('key').'%');
//            }

        };
    }
}
